<!--
- @founder   IT柏拉图, https: //weibo.com/itprato
- @author    DedeCMS团队
- @copyright Copyright (c) 2007 - 2021, 上海卓卓网络科技有限公司 (DesDev, Inc.)
--->

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset={dede:global.cfg_soft_lang/}">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>
<?php echo $cfg_softname." ".$cfg_version; ?>
</title>
<link rel="icon" href="/favicon.ico">
<!-- CSS FILES -->
<link rel="stylesheet" type="text/css" href="{dede:global.cfg_assets_dir/}/pkg/uikit/css/uikit.min.css">
<link rel="stylesheet" type="text/css" href="{dede:global.cfg_assets_dir/}/css/dede.login.css">
</head>
<body class="login uk-cover-container uk-flex uk-flex-column uk-flex-middle" data-uk-height-viewport>
<!--HEADER-->
<header id="install-top">
<div class="uk-container uk-container-dede">
<nav class="uk-navbar-transparent uk-light" data-uk-navbar>
<div class="uk-navbar-left">
<span class="uk-navbar-item uk-logo">
<img src="{dede:global.cfg_assets_dir/}/img/dedecms.png" />&nbsp;<?=$cfg_version;?> &nbsp;系统登录
</span>
</div>
<div class="uk-navbar-right ">
<ul class="uk-navbar-nav">
<li><a href="http://www.DedeCMS.com" class="install-link" target="_blank">官方网站</a></li>
<li><a href="http://bbs.DedeCMS.com" target="_blank">技术论坛</a></li>
<li><a href="https://github.com/dedecms" target="_blank">GITHUB</a></li>
<li><a href="http://help.DedeCMS.com" target="_blank">帮助</a></li>
</ul>
</div>
</nav>
</div>
</header>
<!--/HEADER-->
<div id="login" class="uk-width-large">
<div class="uk-card uk-card-small uk-card-default">
<div class="uk-card-header">
<div class="uk-grid uk-grid-small uk-text-small" data-uk-grid="">
<div class="uk-width-expand uk-first-column">
<span class="cat-txt">DedeCMS管理后台登录</span>
</div>
</div>
</div>
<div class="dede-padding">
<div class="uk-width-1-1">
<div class=" uk-alert-warning" uk-alert>
<p>
<?=$redmsg; ?>
</p>
</div>
</div>
<div class="" grid>
<div class="uk-child-width-1-1">
<form class="uk-padding-small" action="login.php">
<input type="hidden" name="gotopage" value="<?php if(!empty($gotopage)) echo RemoveXSS($gotopage);?>" />
<input type="hidden" name="dopost" value="login" />
<input name='adminstyle' type='hidden' value='newdedecms' />
<fieldset class="uk-fieldset">
<div class="uk-margin-small">
<div class="uk-inline uk-width-1-1">
<span class="uk-form-icon uk-form-icon-flip" data-uk-icon="icon: user"></span>
<input class="uk-input" required placeholder="用户名" type="text" name="userid">
</div>
</div>
<div class="uk-margin-small">
<div class="uk-inline uk-width-1-1">
<span class="uk-form-icon uk-form-icon-flip" data-uk-icon="icon: lock"></span>
<input class="uk-input" required placeholder="密码" type="password" name="pwd">
</div>
</div>
<?php if(preg_match("/6/",$safe_gdopen)) { ?>
<div class="uk-margin" uk-grid>
<div class="uk-inline uk-width-1-2">
<span class="uk-form-icon uk-form-icon-flip" data-uk-icon="icon: code"></span>
<input class="uk-input" required placeholder="验证码" type="text" name="validate" />
</div>
<div class="uk-margin-small uk-inline uk-width-1-2 uk-flex uk-flex-middle">
<img id="vdimgck" align="absmiddle" onClick="this.src=this.src+'?'"
style="cursor: pointer;" alt="看不清？点击更换"
src="../plus/vdimgck.php" />&nbsp;&nbsp;&nbsp;&nbsp;
<a href="#" onClick="changeAuthCode();">看不清？</a>
</div>
</div>
<?php } ?>
<div class="uk-margin-small">
<button type="submit" onclick="this.form.submit();"
class="uk-button uk-button-primary uk-width-1-1">登录</button>
</div>
</fieldset>
</form>
</div>
</div>
</div>
<!--/安装步骤-->
</div>
</div>
<footer class="uk-section ">
<div class="uk-container uk-text-small uk-text-center">
Powered by <a href="http://www.dedecms.com" title="织梦内容管理系统(DedeCMS)--国内专业的PHP网站管理系统，轻松建站的利器。"
target="_blank"><strong>DedeCMS {dede:global.cfg_version/}
</strong></a> &copy; 2007 - 2021 <a href="http://www.desdev.cn/" target="_blank">上海卓卓网络科技有限公司</a>
(DesDev Inc.)
</div>
</footer>
<!-- JS FILES -->
<script src="{dede:global.cfg_assets_dir/}/pkg/uikit/js/uikit.min.js"></script>
<script src="{dede:global.cfg_assets_dir/}/pkg/uikit/js/uikit-icons.min.js"></script>
<script src="{dede:global.cfg_assets_dir/}/pkg/jquery/jquery.min.js"></script>
<script type="text/javascript">
$ = jQuery;
function changeAuthCode() {
var num = new Date().getTime();
var rand = Math.round(Math.random() * 10000);
num = num + rand;
$('#ver_code').css('visibility', 'visible');
if ($("#vdimgck")[0]) {
$("#vdimgck")[0].src = "../plus/vdimgck.php?tag=" + num;
}
return false;
}
</script>
</body>
</html>
